home *** CD-ROM | disk | FTP | other *** search
/ PC World Interactive 1 / PC World Interactive 1 - Nisan 1997.iso / nostalji / bbs / prog / webtrial.exe / WBSMISC.QIP / DEMOINDX.BAT < prev    next >
DOS Batch File  |  1995-06-14  |  789b  |  33 lines

  1. rem
  2. rem ****************
  3. rem * DEMOINDX.BAT *
  4. rem ****************
  5. rem
  6. rem Offers an ISINDEX document if no query arguments, 
  7. rem else reports on the "results" of the query.
  8. rem
  9. set of=%output_file%
  10. if NOT %#==0 goto shoquery
  11. rem
  12. rem No query, signal server to do redirect to ISINDEX demo doc.
  13. rem
  14. echo Location: /demo/isindex.htm > %of%
  15. echo. >> %of%
  16. goto done
  17. rem
  18. rem There were query arguments. Generate plain text report (COMMAND.COM)
  19. rem
  20. :shoquery
  21. echo Content-type:text/plain > %of%
  22. echo. >> %of%
  23. echo Here is what the server would have fed to the back-end program: >> %of%
  24. echo. >> %of%
  25. echo Number of query arguments = %# >> %of%
  26. echo. >> %of%
  27. echo Arguments: >> %of%
  28. echo %1 %2 %3 %4 %5 %6 %7 %8 %9 >> %of%
  29. :done
  30. echo -- end of report -- >> %of%
  31.  
  32.  
  33.